<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../../assets/docs.css" rel="stylesheet" type="text/css" media="screen" />
<title>MooTools 1.3 Documentation - Browser/Browser</title>
</head>

<body>
  <div id="docs" class="doc">
    <div class="methods">
      <h4 class="menu-item"><a href="#Browser">Browser</a></h4>
      <div class="menu-item"><a href="#"></a></div>
    </div>
    <div class="l-border r-border span-15 content">
      <h1 id="Browser"><a href="#Browser">Object: Browser</a></h1>
      <p class="description">Some browser properties are attached to the Browser Object for browser and platform detection.</p>
      <h3>Features:</h3>
      <ul>
        <li>Browser.Features.xpath - (<em>boolean</em>) True if the browser supports DOM queries using XPath.</li>
        <li>Browser.Features.air - (<em>boolean</em>)  True if the browser supports AIR.</li>
        <li>Browser.Features.query - (<em>boolean</em>) True if the browser supports querySelectorAll.</li>
        <li>Browser.Features.json - (<em>boolean</em>) True if the browser has a native JSON object.</li>
        <li>Browser.Features.xhr - (<em>boolean</em>) True if the browser supports native XMLHTTP object.</li>
      </ul>
      <h3>Request:</h3>
      <ul>
        <li>Browser.Request - (<em>object</em>) The XMLHTTP object or equivalent.</li>
      </ul>
      <h3>Name:</h3>
      <ul>
        <li>Browser.ie - (<em>boolean</em>) True if the current browser is Internet Explorer.</li>
        <li>Browser.ie6 - (<em>boolean</em>) True if the current browser is Internet Explorer 6.</li>
        <li>Browser.ie7 - (<em>boolean</em>) True if the current browser is Internet Explorer 7.</li>
        <li>Browser.ie8 - (<em>boolean</em>) True if the current browser is Internet Explorer 8.</li>
        <li>Browser.firefox - (<em>boolean</em>) True if the current browser is Firefox</li>
        <li>Browser.firefox2 - (<em>boolean</em>) True if the current browser is Firefox 2</li>
        <li>Browser.firefox3 - (<em>boolean</em>) True if the current browser is Firefox 3</li>
        <li>Browser.safari - (<em>boolean</em>) True if the current browser is Safari</li>
        <li>Browser.safari3 - (<em>boolean</em>) True if the current browser is Safari 3</li>
        <li>Browser.safari4 - (<em>boolean</em>) True if the current browser is Safari 4</li>
        <li>Browser.chrome - (<em>boolean</em>) True if the current browser is Chrome</li>
        <li>Browser.opera - (<em>boolean</em>) True if the current browser is Opera</li>
      </ul>
      <p>If an IE document is set to backwards compatibility mode using the X-UA-Compatible header, then the Browser object is treated as if the earlier version of the browser is running.</p>
      <h3>Platform:</h3>
      <ul>
        <li>Browser.Platform.mac - (<em>boolean</em>) True if the platform is Mac.</li>
        <li>Browser.Platform.win - (<em>boolean</em>) True if the platform is Windows.</li>
        <li>Browser.Platform.linux - (<em>boolean</em>) True if the platform is Linux.</li>
        <li>Browser.Platform.ios - (<em>boolean</em>) True if the platform is iOS.</li>
        <li>Browser.Platform.android - (<em>boolean</em>) True if the platform is Android</li>
        <li>Browser.Platform.webos - (<em>boolean</em>) True if the platform is WebOS</li>
        <li>Browser.Platform.other - (<em>boolean</em>) True if the platform is neither Mac, Windows, Linux, Android, WebOS nor iOS.</li>
        <li>Browser.Platform.name - (<em>string</em>) The name of the platform.</li>
      </ul>
      <h3>Plugins:</h3>
      <ul>
        <li>Browser.Plugins.Flash - (<em>boolean</em>) - True if Flash is present.</li>
      </ul>
      <h2><a href="#">Deprecated</a></h2>
      <p class="description">The <em>Browser.Engine</em> object is deprecated since MooTools 1.3.</p>
      <h3>Engine:</h3>
      <ul>
        <li>Browser.Engine.trident - (<em>boolean</em>) True if the current browser uses the trident engine (e.g. Internet Explorer).</li>
        <li>Browser.Engine.gecko - (<em>boolean</em>) True if the current browser uses the gecko engine (e.g. Firefox, or any Mozilla Browser).</li>
        <li>Browser.Engine.webkit - (<em>boolean</em>) True if the current browser uses the webkit engine (e.g. Safari, Google Chrome, Konqueror).</li>
        <li>Browser.Engine.presto - (<em>boolean</em>) True if the current browser uses the presto engine (e.g. Opera 9).</li>
        <li>Browser.Engine.name - (<em>string</em>) The name of the engine.</li>
        <li>Browser.Engine.version - (<em>number</em>) The version of the engine. (e.g. 950)</li>
        <li>Browser.Plugins.Flash.version - (<em>number</em>) The major version of the flash plugin installed.</li>
        <li>Browser.Plugins.Flash.build - (<em>number</em>) The build version of the flash plugin installed.</li>
      </ul>
    </div>
  </div>
<script type="text/javascript" src="../../../assets/mootools-core-1.3.js"></script>
<script type="text/javascript" src="../../../assets/mootools-more-smoothscroll.js"></script>
<script type="text/javascript" src="../../../assets/doc-assist.js"></script>
</body>
</html>
